// https : // iai.sh.cn/problem/42
#include <bits/stdc++.h>
using namespace std;
char a[101][101];

int di[8] = {0, 0, 1, -1, 1, 1, -1, -1};
int dj[8] = {1, -1, 0, 0, 1, -1, 1, -1};

int main() {
  int n, m;
  cin >> n >> m;

  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= m; j++) {
      cin >> a[i][j];
    }
  }
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= m; j++) {
      int total = 0;
      for (int k = 0; k < 8; k++) {
        int ni = i + di[k];
        int nj = j + dj[k];
        if (ni >= 1 && ni <= n && nj >= 1 && nj <= m) {
          if (a[ni][nj] == '*') {
            total++;
          }
        }
      }
      if (a[i][j] == '.' && total == 3 ||
          a[i][j] == '*' && (total < 2 || total > 3)) {
        cout << "Other" << endl;
        return 0;
      }
    }
  }
  cout << "Still life";
  return 0;
}